package java67_oop3.method2;

import java.util.Scanner;

public class CustTest {

	public static void main(String[] args) {
		CustManager cm = new CustManager();
		cm.name = "老刘";
		cm.tele = "13865997763";
		Scanner in = new Scanner(System.in);
		int ch = 0;
		while (true) {
			System.out.println("1:加新客户,2:查看客户 9:退出");
			ch = in.nextInt();
			if (ch == 1) {
				System.out.print("请输入客户姓名:");
				String name = in.next();
				cm.addCust(name);
			} else if (ch == 2) {
				cm.showCustomers();
			} else if (ch == 9) {
				break;
			}
		}
	}

}
